package session03.bean;

import java.sql.Date;

public class PlayerBean {
    private int playerID;
    private String name;
    private String place;
    private String club;
    private Date date;

    public PlayerBean() {

    }

    public PlayerBean(int playerID, String name) {
        this.playerID = playerID;
        this.name = name;
    }

    public PlayerBean(int playerID, String name, String place, String club, Date date) {
        this.playerID = playerID;
        this.name = name;
        this.place = place;
        this.club = club;
        this.date = date;
    }

    public int getPlayerID() {
        return playerID;
    }

    public void setPlayerID(int playerID) {
        this.playerID = playerID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getClub() {
        return club;
    }

    public void setClub(String club) {
        this.club = club;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "PlayerBean{" +
                "playerID=" + playerID +
                ", name='" + name + '\'' +
                ", place='" + place + '\'' +
                ", club='" + club + '\'' +
                ", date=" + date +
                '}';
    }
}
